package com.bwie.controller;
import com.bwie.pojo.ProdAtta;
import com.bwie.service.Impl.ProdAttaServiceImpl;
import com.bwie.service.ProdAttaService;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* 商品附件表(tb_prod_atta)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/prod/atta")
public class ProdAttaController {
/**
* 服务对象
*/
    @Autowired
    private ProdAttaService prodAttaService;

    /**
     * 添加商品附件
     * @param prodAtta
     * @return
     */
    @PostMapping(value = "addAttaList")
    public R addAttaList(
            @RequestBody ProdAtta prodAtta
    ){
        return prodAttaService.addAttaList(prodAtta);
    }
}
